import { request } from "@/utils/request"

// 获取配件信息,0个人配件,1公司配件
export const getPartsInfo = (is_company) => request({
	url: `worker_parts/getSelect`,
	method: "GET"
})

export const getPersonPartsSelect = (data) => request({
	url: `Storehouse/getPersonPartsSelect`,
	data,
	method: "GET"
})
export const getPersonPartsDetails = (data) => request({
	url: `Storehouse/getPersonPartsDetails`,
	data,
	method: "GET"
})
export const getPartsLogList = (data) => request({
	url: `Storehouse/getPartsLogList`,
	data,
	method: "GET"
})
export const postPersonPartsStockNumber = (data) => request({
	url: `Storehouse/postPersonPartsStockNumber`,
	data,
	method: "POST"
})
export const postPersonParts = (data) => request({
	url: `Storehouse/postPersonParts`,
	data,
	method: "POST"
})
export const getPartsPurchaseSelect = (data) => request({
	url: `Storehouse/getPartsPurchaseSelect`,
	data,
	method: "GET"
})
export const getCountFuntype = (data) => request({
	url: `Storehouse/getCountFuntype?funtype=getPartsPurchaseSelect`,
	data,
	method: "GET"
})
